# -*- coding: UTF-8 -*-

# @Time : 2020/8/26 11:11 

# @Author : litao

# @File : application.py 

from url import url

import tornado.web
import os

settings = dict(
    template_path = os.path.join(os.path.dirname(__file__), "templates"),
    static_path = os.path.join(os.path.dirname(__file__), "statics"),
    debug=True,
    autoescape = None,
    cookie_secret = "bZJc2sWbQLKos6GkHn/VB9oXwQt8S0R0kRvJ5/xJ89E=",
    xsrf_cookies = True,
    login_url = '/',
    )

application = tornado.web.Application(
    handlers = url,
    **settings
    )